<?php
/**
 * XIE--Scorpion
 *
 * 前台展示
 *
 * time 2016-5-13
 */
namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use DB,Input,Redirect,Session,url;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    //主页面
    public function index()
    {
        //登录状态
        $user_name=Session::get('user_name');

        //友情链接
        $blogroll=DB::table('friendshiplink')->get();

        //轮播图
        //$blogroll=DB::table('friendshiplink')->get();


        //print_r($blogroll);die;

        //echo $user_name;die;
        return view('homes/index',compact('user_name','blogroll'));
    }

    //登录页面
    public function login()
    {
    	return view('homes/login');
    }

    //注册页面
    public function register()
    {
    	return view('homes/register');
    }




}


?>